﻿@model IEnumerable<ITProject.WebUI.Models.ProjectTeamLeader.ProjectTeamLeaderIndexViewModel>
@{
    ViewBag.Title = "Panel Lidera";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<h2>Panel Lidera zespołów projektu @ViewData["projectName"].ToString()</h2>

<div class="Pmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectMenuControl,
            new ITProject.WebUI.Models.Project.ProjectMenuViewModel { ProjectName = ViewData["projectName"].ToString(), Role = (ITProject.Domain.UserRole)ViewData["Role"] })
</div>


<div class="PAplane">
<h4>Lista Zespołów</h4>
<span class="button" id="USortAsc">Sortowanie A-Z</span>
<span class="button" id="USortDesc">Sortowanie Z-A</span>
<p class="small">
Wyszukaj: @Html.TextBox("szukaj", null, new { @id = "search2", @class="search"})
</p>   
<table width="100%" class="inbox" id="users">
<thead>
<tr>
<th class="label" width="50%">Nazwa Zespołu</th>
<th class="label" width="50%">Opcje</th>
</tr>
</thead>
<tbody>
    @foreach (var item in Model)
    {
        
        <tr >
        <td class="edit">
        @Html.DisplayFor(items => item.TeamName)
        </td>
        <td class="edit">
        @Html.ActionLink("Rozdaj Zadania", MVC.ProjectTeamLeader.ActionNames.AddTeamTask, MVC.ProjectTeamLeader.Name, new { projectName=ViewData["projectName"].ToString(), teamId = item.TeamId }, new { @class="button" })
        </td>
        </tr>
    }

</tbody>
</table>
</div>
<div class="clear">
</div>

